import java.util.Scanner;
public class Book37_3{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.printf("请输入三位整数：");
		int a,sum;
		a = input.nextInt();
		sum = a/100 + a%100/10 + a%10;
		System.out.println("各个数字之和为： " + sum);
	}
}